import request from '@/utils/request'
import cfg from '@/config/config'

const menu = {
    //获取区域树
    getTreeList:() =>{
        return request('post', cfg.apiUrl + 'api/visitor/getAreaAndBase');
    },

    // 查看是否有权限 0 没权限 1有权限
    getResourceAuthorityList:(param) => {
      return request('get', cfg.apiUrl + 'api/bdSysMenu/getResourceAuthorityList?menuId='+param);
    },
}

export default menu;

